// 演示lodash
// first / last / toUpper / reverse / each / includes / find / findIndex

const _ = require('lodash')

let array = ['Husky', 'Rita', 'Nicole', 'Vincent', 'Frank', 'Jose', 'Sam']
console.log(_.first(array))
console.log(_.last(array))
console.log(_.toUpper(_.first(array)))
console.log(_.reverse(array))

const result = _.each(array, (item,index)=>{
    console.log('each',{item,index})
})
console.log(result)